<?php

namespace common\entities\common;

use common\entities\ConfigEntity;
use Yii;

/**
 * This is the model class for table "myscrm_authorizetype".
 *
 * @property string $AuthorizeTypeId
 * @property string $ApplicationId
 * @property string $UniqueName
 * @property string $FriendlyName
 * @property int $Price
 * @property string $Description
 * @property string $VersionNumber
 */
class MyscrmAuthorizeTypeEntity extends ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_authorizetype';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['AuthorizeTypeId', 'ApplicationId', 'UniqueName', 'FriendlyName'], 'required'],
            [['Price'], 'integer'],
            [['ApplicationId', 'AuthorizeTypeId'], 'string', 'max' => 36],
            [['UniqueName'], 'string', 'max' => 64],
            [['FriendlyName', 'Description'], 'string', 'max' => 512],
            [['VersionNumber'], 'string', 'max' => 8],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'AuthorizeTypeId' => 'Authorize Type ID',
            'ApplicationId' => 'Application ID',
            'UniqueName' => 'Unique Name',
            'FriendlyName' => 'Friendly Name',
            'VersionNumber' => 'Version Number',
            'Price' => 'Price',
            'Description' => 'Descriptione',
        ];
    }
    
}
